#include "../include/utils/tools.h"

using namespace std;

// 编译
// cd tests
// Linux  : g++ -std=c++11 -I../include/core -I../include/utils -DDEBUG -o ../bin/utils_test.bin utils_test.cpp ../src/utils/tools.cpp
// Windows: g++ -std=c++11 -I../include/core -I../include/utils -DDEBUG -o ../bin/utils_test.exe utils_test.cpp  ../src/utils/tools.cpp -lws2_32
int main(const int argc, char *argv[]) {
#ifdef _WIN32
	SetConsoleOutputCP(CP_UTF8);
	WSADATA wsaData;
	if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {
		std::cerr << "WSAStartup failed..." << std::endl;
		return 1;
	}
#endif

	cout << currentIP4() << endl;
	cout << currentIP4() << endl;
	cout << currentIP4() << endl;
#ifdef _WIN32
	WSACleanup();
#endif
	// getchar();
	return 0;
}
